package com.tengfei.main.exam.domain.bo;

import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 试卷试题业务对象 exam_question
 *
 * @author tengfei
 * @date 2022-07-31
 */

@Data
@ApiModel("试卷试题业务对象")
public class PaperQuBo {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 试卷id
     */
    @ApiModelProperty(value = "试卷id", required = true)
    @NotNull(message = "试卷id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long paperId;

    /**
     * 题目id
     */
    @ApiModelProperty(value = "题目id", required = true)
    @NotNull(message = "题目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quId;

    /**
     * 题目类型
     */
    @ApiModelProperty(value = "题目类型", required = true)
    @NotNull(message = "题目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer quType;

    /**
     * 题目分数
     */
    @ApiModelProperty(value = "题目分数", required = true)
    @NotNull(message = "题目分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer quScore;


}
